Pupilometer guided anesthesia